package com.hui.service;

import com.hui.dao.mapper.UserRoleMapper;
import com.hui.entity.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    public List<UserRole> loadByUsername(String username){
        return userRoleMapper.loadByUsername(username);
    };

    public void save(UserRole userRole){

    };

    public UserRole getUserRoleById(Integer userId){
        return userRoleMapper.selectByPrimaryKey(userId);
    }
}
